# -*- coding: utf-8 -*-
"""
@Project: base_python
@File: likenumber.py
@Author: PC
@Date: 2025/2/10
@Description: 
"""
import json
import  os

filename = 'likenum.json'

if os.path.exists(filename):
	with open(filename, 'r') as f_obj:
		number = json.load(f_obj)
	print("I know yourfavorite number!It", number)

else:

	number = input("What is your number?")
	with open(filename, 'w') as f_obj:
		json.dump(number, f_obj)


